<%--
  Created by IntelliJ IDEA.
  User: 17126
  Date: 2022/3/30
  Time: 11:58
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="com.circle.Circle" %>
<html>
<head>
    <title>计算圆形</title>
</head>
<body>
<%
    Circle circle = new Circle();
    circle.setRadius(5);
    out.print("面积为:"+circle.getArea()+"<br>");
    out.print("周长为:"+circle.getPerimeter());
%>
</body>
</html>
